0 CpxRelTRS
↳1 RelTrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 CpxWeightedTrsRenamingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxWeightedTrs
↳5 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳6 CpxTypedWeightedTrs
↳7 CompletionProof (UPPER BOUND(ID), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 NarrowingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳10 CpxTypedWeightedCompleteTrs
↳11 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳12 CpxRNTS
↳13 SimplificationProof (BOTH BOUNDS(ID, ID), 10 ms)
↳14 CpxRNTS
↳15 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 507 ms)
↳18 CpxRNTS
↳19 IntTrsBoundProof (UPPER BOUND(ID), 143 ms)
↳20 CpxRNTS
↳21 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 1752 ms)
↳24 CpxRNTS
↳25 IntTrsBoundProof (UPPER BOUND(ID), 537 ms)
↳26 CpxRNTS
↳27 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 310 ms)
↳30 CpxRNTS
↳31 IntTrsBoundProof (UPPER BOUND(ID), 250 ms)
↳32 CpxRNTS
↳33 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 71 ms)
↳36 CpxRNTS
↳37 IntTrsBoundProof (UPPER BOUND(ID), 5 ms)
↳38 CpxRNTS
↳39 FinalProof (⇔, 0 ms)
↳40 BOUNDS(1, n^2)
isort(Cons(x, xs), r) → isort(xs, insert(x, r))
isort(Nil, r) → Nil
insert(S(x), r) → insert[Ite](<(S(x), x), S(x), r)
inssort(xs) → isort(xs, Nil)
<(S(x), S(y)) → <(x, y)
<(0, S(y)) → True
<(x, 0) → False
insert[Ite](False, x', Cons(x, xs)) → Cons(x, insert(x', xs))
insert[Ite](True, x, r) → Cons(x, r)
isort(Cons(x, xs), r) → isort(xs, insert(x, r)) [1]
isort(Nil, r) → Nil [1]
insert(S(x), r) → insert[Ite](<(S(x), x), S(x), r) [1]
inssort(xs) → isort(xs, Nil) [1]
<(S(x), S(y)) → <(x, y) [0]
<(0, S(y)) → True [0]
<(x, 0) → False [0]
insert[Ite](False, x', Cons(x, xs)) → Cons(x, insert(x', xs)) [0]
insert[Ite](True, x, r) → Cons(x, r) [0]
< => lt |
isort(Cons(x, xs), r) → isort(xs, insert(x, r)) [1]
isort(Nil, r) → Nil [1]
insert(S(x), r) → insert[Ite](lt(S(x), x), S(x), r) [1]
inssort(xs) → isort(xs, Nil) [1]
lt(S(x), S(y)) → lt(x, y) [0]
lt(0, S(y)) → True [0]
lt(x, 0) → False [0]
insert[Ite](False, x', Cons(x, xs)) → Cons(x, insert(x', xs)) [0]
insert[Ite](True, x, r) → Cons(x, r) [0]
isort(Cons(x, xs), r) → isort(xs, insert(x, r)) [1]
isort(Nil, r) → Nil [1]
insert(S(x), r) → insert[Ite](lt(S(x), x), S(x), r) [1]
inssort(xs) → isort(xs, Nil) [1]
lt(S(x), S(y)) → lt(x, y) [0]
lt(0, S(y)) → True [0]
lt(x, 0) → False [0]
insert[Ite](False, x', Cons(x, xs)) → Cons(x, insert(x', xs)) [0]
insert[Ite](True, x, r) → Cons(x, r) [0]
isort :: Cons:Nil → Cons:Nil → Cons:Nil Cons :: S:0 → Cons:Nil → Cons:Nil insert :: S:0 → Cons:Nil → Cons:Nil Nil :: Cons:Nil S :: S:0 → S:0 insert[Ite] :: True:False → S:0 → Cons:Nil → Cons:Nil lt :: S:0 → S:0 → True:False inssort :: Cons:Nil → Cons:Nil 0 :: S:0 True :: True:False False :: True:False |
(a) The obligation is a constructor system where every type has a constant constructor,
(b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols:
isort
inssort
insert
lt
insert[Ite]
lt(v0, v1) → null_lt [0]
insert[Ite](v0, v1, v2) → Nil [0]
insert(v0, v1) → Nil [0]
null_lt
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Nil => 0
0 => 0
True => 2
False => 1
null_lt => 0
insert(z, z') -{ 1 }→ insert[Ite](lt(1 + y', y'), 1 + (1 + y'), r) :|: r >= 0, z = 1 + (1 + y'), y' >= 0, z' = r
insert(z, z') -{ 1 }→ insert[Ite](1, 1 + 0, r) :|: r >= 0, z = 1 + 0, z' = r
insert(z, z') -{ 1 }→ insert[Ite](0, 1 + x, r) :|: r >= 0, x >= 0, z = 1 + x, z' = r
insert(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0
insert[Ite](z, z', z'') -{ 0 }→ 1 + x + r :|: z = 2, z'' = r, r >= 0, z' = x, x >= 0
insert[Ite](z, z', z'') -{ 0 }→ 1 + x + insert(x', xs) :|: z' = x', xs >= 0, z = 1, x' >= 0, x >= 0, z'' = 1 + x + xs
inssort(z) -{ 1 }→ isort(xs, 0) :|: xs >= 0, z = xs
isort(z, z') -{ 2 }→ isort(xs, insert[Ite](lt(1 + x'', x''), 1 + x'', r)) :|: xs >= 0, r >= 0, z = 1 + (1 + x'') + xs, x'' >= 0, z' = r
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, r >= 0, x >= 0, z' = r
isort(z, z') -{ 1 }→ 0 :|: r >= 0, z = 0, z' = r
lt(z, z') -{ 0 }→ lt(x, y) :|: z' = 1 + y, x >= 0, y >= 0, z = 1 + x
lt(z, z') -{ 0 }→ 2 :|: z' = 1 + y, y >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: x >= 0, z = x, z' = 0
lt(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
insert(z, z') -{ 1 }→ insert[Ite](lt(1 + (z - 2), z - 2), 1 + (1 + (z - 2)), z') :|: z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 }→ insert[Ite](1, 1 + 0, z') :|: z' >= 0, z = 1 + 0
insert(z, z') -{ 1 }→ insert[Ite](0, 1 + (z - 1), z') :|: z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 1 + x + insert(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 1 }→ isort(z, 0) :|: z >= 0
isort(z, z') -{ 2 }→ isort(xs, insert[Ite](lt(1 + x'', x''), 1 + x'', z')) :|: xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ lt(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
{ lt } { insert[Ite], insert } { isort } { inssort } |
insert(z, z') -{ 1 }→ insert[Ite](lt(1 + (z - 2), z - 2), 1 + (1 + (z - 2)), z') :|: z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 }→ insert[Ite](1, 1 + 0, z') :|: z' >= 0, z = 1 + 0
insert(z, z') -{ 1 }→ insert[Ite](0, 1 + (z - 1), z') :|: z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 1 + x + insert(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 1 }→ isort(z, 0) :|: z >= 0
isort(z, z') -{ 2 }→ isort(xs, insert[Ite](lt(1 + x'', x''), 1 + x'', z')) :|: xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ lt(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert[Ite](lt(1 + (z - 2), z - 2), 1 + (1 + (z - 2)), z') :|: z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 }→ insert[Ite](1, 1 + 0, z') :|: z' >= 0, z = 1 + 0
insert(z, z') -{ 1 }→ insert[Ite](0, 1 + (z - 1), z') :|: z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 1 + x + insert(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 1 }→ isort(z, 0) :|: z >= 0
isort(z, z') -{ 2 }→ isort(xs, insert[Ite](lt(1 + x'', x''), 1 + x'', z')) :|: xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ lt(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: ?, size: O(1) [2] |
insert(z, z') -{ 1 }→ insert[Ite](lt(1 + (z - 2), z - 2), 1 + (1 + (z - 2)), z') :|: z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 }→ insert[Ite](1, 1 + 0, z') :|: z' >= 0, z = 1 + 0
insert(z, z') -{ 1 }→ insert[Ite](0, 1 + (z - 1), z') :|: z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 1 + x + insert(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 1 }→ isort(z, 0) :|: z >= 0
isort(z, z') -{ 2 }→ isort(xs, insert[Ite](lt(1 + x'', x''), 1 + x'', z')) :|: xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ lt(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: O(1) [0], size: O(1) [2] |
insert(z, z') -{ 1 }→ insert[Ite](s', 1 + (1 + (z - 2)), z') :|: s' >= 0, s' <= 2, z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 }→ insert[Ite](1, 1 + 0, z') :|: z' >= 0, z = 1 + 0
insert(z, z') -{ 1 }→ insert[Ite](0, 1 + (z - 1), z') :|: z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 1 + x + insert(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 1 }→ isort(z, 0) :|: z >= 0
isort(z, z') -{ 2 }→ isort(xs, insert[Ite](s, 1 + x'', z')) :|: s >= 0, s <= 2, xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ s'' :|: s'' >= 0, s'' <= 2, z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: O(1) [0], size: O(1) [2] |
insert(z, z') -{ 1 }→ insert[Ite](s', 1 + (1 + (z - 2)), z') :|: s' >= 0, s' <= 2, z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 }→ insert[Ite](1, 1 + 0, z') :|: z' >= 0, z = 1 + 0
insert(z, z') -{ 1 }→ insert[Ite](0, 1 + (z - 1), z') :|: z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 1 + x + insert(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 1 }→ isort(z, 0) :|: z >= 0
isort(z, z') -{ 2 }→ isort(xs, insert[Ite](s, 1 + x'', z')) :|: s >= 0, s <= 2, xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ s'' :|: s'' >= 0, s'' <= 2, z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: O(1) [0], size: O(1) [2] insert[Ite]: runtime: ?, size: O(n1) [1 + z' + z''] insert: runtime: ?, size: O(n1) [1 + z + z'] |
insert(z, z') -{ 1 }→ insert[Ite](s', 1 + (1 + (z - 2)), z') :|: s' >= 0, s' <= 2, z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 }→ insert[Ite](1, 1 + 0, z') :|: z' >= 0, z = 1 + 0
insert(z, z') -{ 1 }→ insert[Ite](0, 1 + (z - 1), z') :|: z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 1 + x + insert(z', xs) :|: xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 1 }→ isort(z, 0) :|: z >= 0
isort(z, z') -{ 2 }→ isort(xs, insert[Ite](s, 1 + x'', z')) :|: s >= 0, s <= 2, xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ s'' :|: s'' >= 0, s'' <= 2, z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: O(1) [0], size: O(1) [2] insert[Ite]: runtime: O(n1) [z''], size: O(n1) [1 + z' + z''] insert: runtime: O(n1) [1 + z'], size: O(n1) [1 + z + z'] |
insert(z, z') -{ 1 + z' }→ s2 :|: s2 >= 0, s2 <= 1 * (1 + (1 + (z - 2))) + 1 * z' + 1, s' >= 0, s' <= 2, z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 + z' }→ s3 :|: s3 >= 0, s3 <= 1 * (1 + 0) + 1 * z' + 1, z' >= 0, z = 1 + 0
insert(z, z') -{ 1 + z' }→ s4 :|: s4 >= 0, s4 <= 1 * (1 + (z - 1)) + 1 * z' + 1, z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 1 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * z' + 1 * xs + 1, xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 1 }→ isort(z, 0) :|: z >= 0
isort(z, z') -{ 2 + z' }→ isort(xs, s1) :|: s1 >= 0, s1 <= 1 * (1 + x'') + 1 * z' + 1, s >= 0, s <= 2, xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ s'' :|: s'' >= 0, s'' <= 2, z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: O(1) [0], size: O(1) [2] insert[Ite]: runtime: O(n1) [z''], size: O(n1) [1 + z' + z''] insert: runtime: O(n1) [1 + z'], size: O(n1) [1 + z + z'] |
insert(z, z') -{ 1 + z' }→ s2 :|: s2 >= 0, s2 <= 1 * (1 + (1 + (z - 2))) + 1 * z' + 1, s' >= 0, s' <= 2, z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 + z' }→ s3 :|: s3 >= 0, s3 <= 1 * (1 + 0) + 1 * z' + 1, z' >= 0, z = 1 + 0
insert(z, z') -{ 1 + z' }→ s4 :|: s4 >= 0, s4 <= 1 * (1 + (z - 1)) + 1 * z' + 1, z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 1 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * z' + 1 * xs + 1, xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 1 }→ isort(z, 0) :|: z >= 0
isort(z, z') -{ 2 + z' }→ isort(xs, s1) :|: s1 >= 0, s1 <= 1 * (1 + x'') + 1 * z' + 1, s >= 0, s <= 2, xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ s'' :|: s'' >= 0, s'' <= 2, z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: O(1) [0], size: O(1) [2] insert[Ite]: runtime: O(n1) [z''], size: O(n1) [1 + z' + z''] insert: runtime: O(n1) [1 + z'], size: O(n1) [1 + z + z'] isort: runtime: ?, size: O(1) [0] |
insert(z, z') -{ 1 + z' }→ s2 :|: s2 >= 0, s2 <= 1 * (1 + (1 + (z - 2))) + 1 * z' + 1, s' >= 0, s' <= 2, z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 + z' }→ s3 :|: s3 >= 0, s3 <= 1 * (1 + 0) + 1 * z' + 1, z' >= 0, z = 1 + 0
insert(z, z') -{ 1 + z' }→ s4 :|: s4 >= 0, s4 <= 1 * (1 + (z - 1)) + 1 * z' + 1, z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 1 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * z' + 1 * xs + 1, xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 1 }→ isort(z, 0) :|: z >= 0
isort(z, z') -{ 2 + z' }→ isort(xs, s1) :|: s1 >= 0, s1 <= 1 * (1 + x'') + 1 * z' + 1, s >= 0, s <= 2, xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 1 }→ isort(xs, 0) :|: z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ s'' :|: s'' >= 0, s'' <= 2, z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: O(1) [0], size: O(1) [2] insert[Ite]: runtime: O(n1) [z''], size: O(n1) [1 + z' + z''] insert: runtime: O(n1) [1 + z'], size: O(n1) [1 + z + z'] isort: runtime: O(n2) [1 + z + z·z' + z2], size: O(1) [0] |
insert(z, z') -{ 1 + z' }→ s2 :|: s2 >= 0, s2 <= 1 * (1 + (1 + (z - 2))) + 1 * z' + 1, s' >= 0, s' <= 2, z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 + z' }→ s3 :|: s3 >= 0, s3 <= 1 * (1 + 0) + 1 * z' + 1, z' >= 0, z = 1 + 0
insert(z, z') -{ 1 + z' }→ s4 :|: s4 >= 0, s4 <= 1 * (1 + (z - 1)) + 1 * z' + 1, z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 1 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * z' + 1 * xs + 1, xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 2 + z + z2 }→ s8 :|: s8 >= 0, s8 <= 0, z >= 0
isort(z, z') -{ 3 + s1·xs + xs + xs2 + z' }→ s6 :|: s6 >= 0, s6 <= 0, s1 >= 0, s1 <= 1 * (1 + x'') + 1 * z' + 1, s >= 0, s <= 2, xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 2 + xs + xs2 }→ s7 :|: s7 >= 0, s7 <= 0, z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ s'' :|: s'' >= 0, s'' <= 2, z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: O(1) [0], size: O(1) [2] insert[Ite]: runtime: O(n1) [z''], size: O(n1) [1 + z' + z''] insert: runtime: O(n1) [1 + z'], size: O(n1) [1 + z + z'] isort: runtime: O(n2) [1 + z + z·z' + z2], size: O(1) [0] |
insert(z, z') -{ 1 + z' }→ s2 :|: s2 >= 0, s2 <= 1 * (1 + (1 + (z - 2))) + 1 * z' + 1, s' >= 0, s' <= 2, z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 + z' }→ s3 :|: s3 >= 0, s3 <= 1 * (1 + 0) + 1 * z' + 1, z' >= 0, z = 1 + 0
insert(z, z') -{ 1 + z' }→ s4 :|: s4 >= 0, s4 <= 1 * (1 + (z - 1)) + 1 * z' + 1, z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 1 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * z' + 1 * xs + 1, xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 2 + z + z2 }→ s8 :|: s8 >= 0, s8 <= 0, z >= 0
isort(z, z') -{ 3 + s1·xs + xs + xs2 + z' }→ s6 :|: s6 >= 0, s6 <= 0, s1 >= 0, s1 <= 1 * (1 + x'') + 1 * z' + 1, s >= 0, s <= 2, xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 2 + xs + xs2 }→ s7 :|: s7 >= 0, s7 <= 0, z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ s'' :|: s'' >= 0, s'' <= 2, z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: O(1) [0], size: O(1) [2] insert[Ite]: runtime: O(n1) [z''], size: O(n1) [1 + z' + z''] insert: runtime: O(n1) [1 + z'], size: O(n1) [1 + z + z'] isort: runtime: O(n2) [1 + z + z·z' + z2], size: O(1) [0] inssort: runtime: ?, size: O(1) [0] |
insert(z, z') -{ 1 + z' }→ s2 :|: s2 >= 0, s2 <= 1 * (1 + (1 + (z - 2))) + 1 * z' + 1, s' >= 0, s' <= 2, z' >= 0, z - 2 >= 0
insert(z, z') -{ 1 + z' }→ s3 :|: s3 >= 0, s3 <= 1 * (1 + 0) + 1 * z' + 1, z' >= 0, z = 1 + 0
insert(z, z') -{ 1 + z' }→ s4 :|: s4 >= 0, s4 <= 1 * (1 + (z - 1)) + 1 * z' + 1, z' >= 0, z - 1 >= 0
insert(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
insert[Ite](z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert[Ite](z, z', z'') -{ 1 + xs }→ 1 + x + s5 :|: s5 >= 0, s5 <= 1 * z' + 1 * xs + 1, xs >= 0, z = 1, z' >= 0, x >= 0, z'' = 1 + x + xs
insert[Ite](z, z', z'') -{ 0 }→ 1 + z' + z'' :|: z = 2, z'' >= 0, z' >= 0
inssort(z) -{ 2 + z + z2 }→ s8 :|: s8 >= 0, s8 <= 0, z >= 0
isort(z, z') -{ 3 + s1·xs + xs + xs2 + z' }→ s6 :|: s6 >= 0, s6 <= 0, s1 >= 0, s1 <= 1 * (1 + x'') + 1 * z' + 1, s >= 0, s <= 2, xs >= 0, z' >= 0, z = 1 + (1 + x'') + xs, x'' >= 0
isort(z, z') -{ 2 + xs + xs2 }→ s7 :|: s7 >= 0, s7 <= 0, z = 1 + x + xs, xs >= 0, z' >= 0, x >= 0
isort(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
lt(z, z') -{ 0 }→ s'' :|: s'' >= 0, s'' <= 2, z - 1 >= 0, z' - 1 >= 0
lt(z, z') -{ 0 }→ 2 :|: z' - 1 >= 0, z = 0
lt(z, z') -{ 0 }→ 1 :|: z >= 0, z' = 0
lt(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
lt: runtime: O(1) [0], size: O(1) [2] insert[Ite]: runtime: O(n1) [z''], size: O(n1) [1 + z' + z''] insert: runtime: O(n1) [1 + z'], size: O(n1) [1 + z + z'] isort: runtime: O(n2) [1 + z + z·z' + z2], size: O(1) [0] inssort: runtime: O(n2) [2 + z + z2], size: O(1) [0] |